package Utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateDemo {
    public static void main(String[] args) {
        Date dt = new Date();
        System.out.println("today is " + dt.toString());
        System.out.println("the timestamp is " + dt.getTime());
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println("formatted date: " + formatter.format(dt));
    }
}
